<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="pageContent">
	<form method="post" action="${rootUrl}/goods/goods-class-attr/${goodsClassAttr.id}" class="pageForm required-validate" onsubmit="return beforeSubmit(this);">
		 <c:if test="${goodsClassAttr.id != 0 && goodsClassAttr.id != '' }"><input type="hidden" name="_method" value="put"></c:if>
		<input type="hidden" id="goodsClassId" name="goodsClassId" value="${goodsClass.id }">
		<div class="pageFormContent" layoutH="56">
			<p>
			     <label>商品类别名称：</label>
				<input id="gcagoodsClassName" name="goodsClassAttr.goodsClass.name" class="required" type="text" size="30" value="${goodsClass.name }" />
			</p>
			<p>
				<label>属性名称：</label>
				<input id="attrclassId" name="goodsClassAttr.classId" type="hidden" size="30" value="${goodsClassAttr.attr.id}" />
				<input type="text" style="float:left" id="attrclassName" name="goodsClassAttr.className" class="required" value="${goodsClassAttr.attr.name}">
				<a class="btnLook" href="${rootUrl}/goods/attr-class/0/goodsClassDialog" width="600" height="500" lookupGroup="goodsClassAttr">属性类别</a>
			</p>	
			
   		 </div>
    	<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button id="theSubmit" type="submit" >保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
    </form>
<script>
	function beforeSubmit(obj){
		$("#gcagoodsClassName").attr("name","goodsClassAttr.className");
		$("#attrclassId").attr("name","goodsClassAttr.attr.id");
		$("#attrclassName").attr("name","goodsClassAttr.attrName");
		return validateCallback(obj, newDialogAjaxDone);
	}
</script>